package com.platform.server.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

public interface WithdrawDao {
	
	/**
	 * 提现审核列表
	 */
	List<Map<String,Object>> selectWithdrawList(Map<String,Object> map);
	
	/**
	 * 修改审核状态
	 */
	int updateWithdrawStatus(Map<String,Object> map);
	//增加消息表记录
	int insertMessqge(String recevicer_id,String content,String type,String record_id);
	//增加操作日志
	int insertLog(String username,String content);
	//减少用户钱包金额
	int updateUserWallet(Map<String,Object> map);
	//增加用户钱包
	int insertUserWallet(Map<String,Object> map);
	
	/**
	 * 增加用户取消订单记录
	 */
	int insertCancelOrder(String userid,String money,String type,String orderid);
	
	/**
	 * 增加用户取消订单记录
	 */
	int insertAllCancelOrder(String userid,String money,String type,String orderid,String userMoney);
	
	/**
	 * 查询用户余额
	 * @param userid
	 * @return
	 */
	Map<String, Object> queryUserMoney(String userid);
	
	/**
	 * 查询提现
	 */
	Map<String, Object> selectById(@Param("id")Integer id);

	void deleteCancelOrder(@Param("withdrawal_order")String withdrawal_order);
}
